package com.friendtrip.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商家信用表
 * </p>
 *
 * @author william.lee
 * @since 2017-04-04
 */
@TableName("business_credit")
public class BusinessCredit extends Model<BusinessCredit> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	private Long id;
    /**
     * 商家id
     */
	@TableField("provider_id")
	private Long providerId;
    /**
     * 商家总分
     */
	private Integer socre;
    /**
     * 创建日期
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;

    public Long getId() {
        return id;
    }

    public BusinessCredit setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getProviderId() {
        return providerId;
    }

    public BusinessCredit setProviderId(Long providerId) {
        this.providerId = providerId;
        return this;
    }

    public Integer getSocre() {
        return socre;
    }

    public BusinessCredit setSocre(Integer socre) {
        this.socre = socre;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public BusinessCredit setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public BusinessCredit setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    @Override
	protected Serializable pkVal() {
		return this.id;
	}

}
